package beans;

import java.beans.PropertyDescriptor;
import java.beans.SimpleBeanInfo;

/**
 *
 * @author Benjamin
 */
public class ROIFilterBeanBeanInfo extends SimpleBeanInfo {
    
    @Override
    public PropertyDescriptor[] getPropertyDescriptors() {
        try {
            PropertyDescriptor enabled, x, y, width, height;
            
            enabled = new PropertyDescriptor("filterEnabled", ROIFilterBean.class);
            enabled.setDisplayName("Set active:");
            
            x = new PropertyDescriptor("x", ROIFilterBean.class);
            x.setDisplayName("X-Coordinate:");
            
            y = new PropertyDescriptor("y", ROIFilterBean.class);
            y.setDisplayName("Y-Coordinate:");
            
            width = new PropertyDescriptor("width", ROIFilterBean.class);
            width.setDisplayName("Width:");
            
            height = new PropertyDescriptor("height", ROIFilterBean.class);
            height.setDisplayName("Height:");
            
            PropertyDescriptor pd[] = { enabled, x, y, width, height };
            return pd;
        }
        catch(Exception ex) {
            ex.printStackTrace();
        }
        return null;
    }
    
}
